{% extends "base.html" %}
{% block title %} {{entry.title}} - {{blog.title}} {% endblock %}
{% block head_block %}
{% if entry %}
{%if entry.strtags%}<meta name="Keywords" content="{{entry.strtags}}">{%endif%}
{%if entry.excerpt%} <meta name="Description" content="{{entry.excerpt}}">{%endif%}
{% endif %}
{% endblock %}
{% block content%}

<div id="content">

{% if entry %}

<h2 id="post-{{entry.key}}"><a href="/{{ entry.link }}" rel="bookmark" title="Permanent Link to {{entry.title}}">{{entry.title}}</a></h2>
<p class="comments"><span class="entrymeta">{% if entry.allow_comment %}<a href="#comments">with {{entry.commentcount}} comments</a>{% else %}Comments are closed.{% endif %}</span></p>

<div class="main">
	{{ entry.content }}
</div>

<div class="meta group">
<div class="signature">
    <p>Written by {{blog.author}} <span class="edit">{%if self.is_admin%}<a href="{{entry.edit_url}}">Edit this entry</a>{%endif%}</span></p>
    <p>{{entry.date|datetz:"F jS, Y"}}</p>
</div>
<div class="tags">
</div>
</div>

{% include "comments.html" %}

{% else %}
<div class="warning">
	<p>Sorry, but you are looking for something that isn't here.</p>
</div>
{%endif%}
</div>
{% include "sidebar.html" %}
{% endblock %}

